package ${package};

import com.platform.annotation.Table;
import com.platform.constant.ConstantInit;
import com.platform.mvc.base.BaseModel;

<% for(dataType in dataTypes){ %>
import ${dataType}; 
<% } %>

import com.jfinal.log.Log;

@SuppressWarnings("unused")
@Table(${isEmpty(dataSource) ? "" : "dataSourceName = " + dataSource + ", "}tableName = ${className}.table_name${isEmpty(pkName) ? "" : ", pkName = \"" + pkName + "\""})
public class ${className} extends BaseModel<${className}> {

	private static final long serialVersionUID = 6761767368352810428L;

	private static final Log log = Log.getLog(${className}.class);
	
	public static final ${className} dao = new ${className}().dao();

	/**
	 * 表名称
	 */
	public static final String table_name = "${tableName}";
	
	/**
	 * sqlId : ${namespace}.splitPageFrom
	 * 描述：分页from
	 */
	public static final String sqlId_splitPageFrom = "${namespace}.splitPageFrom";

	<% for(colunm in colunmList){ %>
	private ${colunm.column_className} ${colunm.column_name};
	<% } %>
	
	<% for(colunm in colunmList){ %>
	public void set${colunm.column_name_upperCaseFirstOne}(${colunm.column_className} ${colunm.column_name}){
		set("${colunm.column_name}", ${colunm.column_name});
	}
	public ${colunm.column_className} get${colunm.column_name_upperCaseFirstOne}() {
		return get("${colunm.column_name}");
	}
	<% } %>
	
}
